package com.vancouver.knows.business.tracker;

import com.pangu.task.IResultReceiver;
import com.pangu.task.OperateResult;
import com.pangu.task.mark.ATaskMark;
import com.vancouver.knows.business.BusinessModule;
import com.vancouver.knows.business.bean.EventDetailInfo;
import com.vancouver.knows.business.cache.CityNewsInfoCache;

/**
 * 获取活动列表
 * 
 * @author chenxunlin01
 * 
 */
public class FetchEventDetailTracker extends ABInvokeTracker {

	public FetchEventDetailTracker(BusinessModule module, IResultReceiver resultReceiver) {
		super(module, resultReceiver);
	}
	
	@Override
	public String TAG() {
		return FetchEventDetailTracker.class.getSimpleName();
	}

	@Override
	public void handleResult(OperateResult result) {
		EventDetailInfo eventDetailInfo = (EventDetailInfo) result.getResultData();
		if (eventDetailInfo != null) {
			module.getCacheManager().getEventDetailInfoMap().put(eventDetailInfo.getId(), eventDetailInfo);
		}
	}
}
